From: Sebastian Keller Date: Sat, 21 Feb 2026 11:32:26 +0000 (+0100) Subject: appDisplay: Consider admin defined folders before creating default ones X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ef82a2a1866873b83e7670eb54cfae0cc90a6183;p=gnome-shell.git appDisplay: Consider admin defined folders before creating default ones The system administrator might have defined some default folders system wide via dconf default values, so checking for user defined values is not enough. This restores the condition to also skip creating default ones if the value is not empty. It still skips the creation of default folders if the empty value was the result of a user action to allow users deleting all folders. Fixes: b0d396c82 ("appDisplay: Only create default folders on the first start") Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9062 Part-of: (cherry picked from commit 4b1d80383c84e2eb12a458c7a41f672d5feb2dfc) --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 71cc36af3..9e33cbd61 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1403,7 +1403,8 @@ class AppDisplay extends BaseAppView { } _ensureDefaultFolders() { - if (this._folderSettings.get_user_value('folder-children') !== null) + if (this._folderSettings.get_user_value('folder-children') !== null || + this._folderSettings.get_strv('folder-children').length > 0) return; const appSys = Shell.AppSystem.get_default();